package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class Microformat implements Sequenceable, Serializable {

    @SerializedName("playerMicroformatRenderer")
    private PlayerMicroformatRenderer playerMicroformatRenderer;


    public static final Sequenceable.Producer<Microformat> CREATOR = new Producer<Microformat>() {
        @Override
        public Microformat createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            Microformat microformat = new Microformat();
            microformat.unmarshalling(parcel);
            return microformat;
        }
    };



    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeSequenceable(this.playerMicroformatRenderer);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        parcel.readSequenceable(this.playerMicroformatRenderer);
        return true;
    }

    @Override
    public String toString() {
        return "Microformat{" +
                "playerMicroformatRenderer=" + playerMicroformatRenderer +
                '}';
    }

    public PlayerMicroformatRenderer getPlayerMicroformatRenderer() {
        return playerMicroformatRenderer;
    }

    public void setPlayerMicroformatRenderer(PlayerMicroformatRenderer playerMicroformatRenderer) {
        this.playerMicroformatRenderer = playerMicroformatRenderer;
    }
}
